<?php include'bdd/includes.php'?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Prescription</title>
<link href="framework/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="framework/bootstrap/css/bootstrap-theme.css.map" rel="stylesheet">
<link rel="stylesheet" href="framework/bootstrap/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="framework/jquery/jquery-2.1.1.min.js"></script>
<script src="framework/bootstrap/js/bootstrap.min.js"></script>
<style type="text/css">
h2{
    margin: 0;     
    color: #666;
    padding-top: 90px;
    font-size: 52px;
    font-family: "trebuchet ms", sans-serif;    
}
.item{
    background: #333;    
    text-align: center;
    height: 300px !important;
}
.carousel{
    margin-top: 20px;
}
.bs-example{
	margin: 20px;
}
</style>
</head>
<?php $auth=0;?>
<body>  
<div class="bs-example">
    <div id="myCarousel" class="carousel slide" data-interval="3000" data-ride="carousel">
    	<!-- Carousel indicators -->
        <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>
            <li data-target="#myCarousel" data-slide-to="2"></li>
        </ol>   
       <!-- Carousel items -->
        <div class="carousel-inner">
            <div class="active item">
                <h2>Les prescriptions</h2>
                <div class="carousel-caption">
                  <h3>Gestion des prescriptions</h3>
                  <p>La liste des prescriptions en détails.</p>
                </div>
            </div>
            <div class="item">
                <h2>Les Clients</h2>
                <div class="carousel-caption">
                  <h3>Gestion des clients</h3>
                  <p>La liste des clients.</p>
                </div>
            </div>
            <div class="item">
                <h2>les Medicaments</h2>
                <div class="carousel-caption">
                  <h3>gestion des Medicaments</h3>
                  <p>Les médicaments prescrits.</p>
                </div>
            </div>
        </div>
        <!-- Carousel nav -->
        <a class="carousel-control left" href="#myCarousel" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <a class="carousel-control right" href="#myCarousel" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
    </div>
</div>
<style type="text/css">
    .bs-example{
    	margin: 20px;
    }
</style>
<div id="bckg">
<div id="news">
<A>Actualités</A><br>
<p>
Cette application consiste à la gestion des prescriptions,elle est destinée aux pharmaciens pour garder les fiches clients,suivre les clients et la gestion du stock des médicaments.
</p>
</div>
</div>
<div id="login">
<?php 
if(isset($_POST['username']) && isset($_POST['password']))
{ 
   $username=$db->quote($_POST['username']);
   $password=sha1($_POST['password']);
   $sql="select * from vendeur where vendeurNom=$username and mp='$password'";
    $select= $db->query($sql);
 
   if(($select->rowCount())>0)
   {   
    header('Location:administration.php');	
   }
}
 ?>
    <form action="#" method="POST">
        <div class="form-group">
            <label for="username">Nom utilisateur:</label>
            <input type='text' class='form-control' name='username' id='$id'  value=''>
        </div>
        <div class="form-group">
            <label for="inputPassword">Mot de passe:</label>
            <input type="password" class="form-control" name="password" id="inputPassword" placeholder="mot de passse">
        </div>
        <button type="submit" class="btn btn-primary" >Connexion</button>
    </form>
    <a href="inscription.php">Inscription</a>
</div>
</div>
<div id="footer">
© Copyright 2014 Prescription
</div>
</body>
</html>   
<?php// include'bdd/debug.php'?>     		